package com.heima.gateway.config;/*
package com.heima.gateway.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.cloud.gateway.route.RouteDefinition;

import java.util.List;

*/
/**
 * 这是通过nacos动态管理gateway路由和断言的配置类
 *//*

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GatewayRouteConfigProperties {

    private Spring spring;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    private static class Spring{
        private Cloud cloud;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    private static class Cloud{
        private Gateway gateway;
    }
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    private static class Gateway{
        private List<RouteDefinition> routes;
    }

    public List<RouteDefinition> getRouteDefinition(){
        return spring.cloud.gateway.routes;
    };
}
*/
